-- GENERATED SPELL FOR [Cenarion Scout] --


function spell0_29220(pUnit, Event) --@Lifebloom,Heal--
pUnit:FullCastSpellOnTarget(53608,pUnit)
pUnit:RegisterEvent('Sorts_29220', 7000, 1)
end

function spell1_29220(pUnit, Event) --@Rejuvenation,Heal--
pUnit:FullCastSpellOnTarget(53607,pUnit)
pUnit:RegisterEvent('Sorts_29220', 12000, 1)
end

function Sorts_29220(pUnit, Event)
local choix_sorts_29220 = math.random(0, 1)
if choix_sorts_29220 == 0 then
pUnit:RegisterEvent('spell0_29220', 1, 1)
end
if choix_sorts_29220 == 1 then
pUnit:RegisterEvent('spell1_29220', 1, 1)
end
end

function mob29220_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29220', math.random(1500, 3000), 1)
end

function mob29220_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29220_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29220_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29220, 1, 'mob29220_Action')
RegisterUnitEvent(29220, 2, 'mob29220_Leave')
RegisterUnitEvent(29220, 3, 'mob29220_Kill')
RegisterUnitEvent(29220, 4, 'mob29220_Die')
